package biz.datalk.industrialland.admin.modules.common.servie;

import biz.datalk.industrialland.mbg.pojo.po.SysFileUpload;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.function.Supplier;

/**
 * @author tarofang@163.com
 * @date 2024-01-20
 */
public interface IFileService {

    SysFileUpload selectByFileCode(String fileCode);
    String getFileSignUrlByObjKey(String objKey);
    String getFileSignUrlByFileCode(String fileCode, Supplier<String> fileNoExistsErrMsgSupplier);

    void signedView(String mod, String fileSignedCode, HttpServletRequest request, HttpServletResponse response);

    // UnifyResult upload(String type, HttpServletRequest request);
    //
    // void download(String mod, String fileCode, HttpServletRequest request, HttpServletResponse response);
    //
    void view(String mod, String fileCode, HttpServletRequest request, HttpServletResponse response);
}
